const obj = {
  name: '俊杰',
  age: 18,
  like: {
    n: '洗脚',
    m: '台球'
  }
}

function shallowCopy() {

}
const newObj = shallowCopy(obj)
obj.like.m = '篮球'
console.log(newObj);